<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>物料记录</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="/sbm/css/table.css" rel="stylesheet" type="text/css" />

</head>

<body>
	<table width="87%" id="mytab" border="1" class="t1" align="center">
		<tr>
			<td align="right"><a href="showcategory">添加一种货物</a></td>
		</tr>
		<tr>
			<td align="center"><span class="errorAndmes"><s:actionerror
						cssStyle="font-family: Arial,Helvetica,sans-serif" /> </span>
			</td>
		</tr>
	</table>
	<table width="87%" id="mytab" border="1" class="t1" align="center">
		<tr>
			<th width="8%">物料名称</th>
			<th width="20%">物料描述</th>
			<th width="10%">物料单位价值</th>
			<th width="8%">物料单位</th>
			<th width="8%">物料总量</th>
			<th width="8%">物料总价值</th>
			<th width="10%">物料类别</th>
			<th width="15%">操作</th>
		</tr>
		<s:iterator value="itemlist" id="item">
			<tr>
				<td><s:property value="#item.name" /> <s:hidden name="itemid"
						value="#item.itemid" /></td>
				<td><s:property value="#item.description" /></td>
				<td><s:property value="#item.unitcost" />
				</td>
				<td><s:property value="#item.unit" />
				</td>
				<td><s:property value="#item.qty" /></td>
				<td><s:property value="#item.price" />
				</td>
				<td><s:property value="#item.first" />&nbsp;/&nbsp;<s:property
						value="#item.second" />&nbsp;</td>
				<td><a
					href="<s:url action="showallstore">
    		<s:param name="item.itemid" value="#item.itemid"></s:param></s:url>">
						具体存货情况 </a><a
					href="<s:url action="showoneitem">
    		<s:param name="item.itemid" value="#item.itemid"></s:param></s:url>">
						修改物料信息</a>
				</td>
			</tr>
		</s:iterator>
	</table>
</body>
</html>